import { createApp } from 'vue'
import store from './stores'
import App from './App.vue'
import router from './router'
import { ConfigProvider } from 'vant'
import Vant from 'vant'
import 'vant/lib/index.css'
import '@/style/index.css'
import '@/style/base.less'
import vconsole from 'vconsole'
import XIcon from '@/components/icons/index'
new vconsole()

const mode = import.meta.env.MODE
if (mode !== 'production') {
  // new vconsole()
}
// import { importComPonents } from './import'
const app = createApp(App)
// importComPonents(app)
app.component(XIcon.name, XIcon)
app.use(store)
app.use(ConfigProvider)
app.use(router)
app.use(Vant)

app.mount('#app')
